import 'package:flutter/material.dart';
import 'package:lai_zhan/common/config/Config.dart';
import 'package:lai_zhan/common/style/AppStyle.dart';
import 'package:lai_zhan/widget/UserIcon.dart';
import 'package:lai_zhan/common/util/NavigatorUtil.dart';

class SubCoachItem extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return new GestureDetector(
      onTap: (){
        NavigatorUtil.goCoachPage(context);
      },
      child: new Container(
        decoration: BoxDecoration(
            color: Color(AppColors.translucenceWhite2),
            borderRadius: BorderRadius.circular(20)),
        width: AppSize.getRealWidth(120),
        height: AppSize.getRealHeight(250),
        child: new Column(
          children: <Widget>[
            new Container(
              height: 10,
            ),
            new UserIcon(
              size: AppSize.getRealWidth(70),
            ),
            new Container(
              height: 5,
            ),
            new Text(
              '张云雷',
              style: AppConstant.middleTextBold,
            ),
            new Container(
              height: 5,
            ),
            new Container(
              alignment: Alignment.center,
              width: AppSize.getRealWidth(100),
              child: new Text(
                '越努力越幸运',
                style: AppConstant.smallText,
              ),
            ),
            new Container(
              height: 5,
            ),
          ],
        ),
      ),
    );
  }
}
